package com.fivestar.finance.app.bean;


import java.util.ArrayList;
import java.util.List;

/**
 * 简要描述
 *
 * @author Derek.Kidd
 * @version V1.0.0
 * @date 2016/8/23 10:56
 */
public class AuthorInfo {

    private String portraitUrl;

    private String nickName;

    private String motto;


    public String getPortraitUrl() {
        return portraitUrl;
    }

    public void setPortraitUrl(String portraitUrl) {
        this.portraitUrl = portraitUrl;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getMotto() {
        return motto;
    }

    public void setMotto(String motto) {
        this.motto = motto;
    }


    /**
     * 生成一些测试数据
     *
     * @return
     */
    public static List<AuthorInfo> createTestData() {
        List<AuthorInfo> authorInfoList = new ArrayList<>();

        for (int count = 0; count < 10; count++) {
            AuthorInfo authorInfo = new AuthorInfo();
            if (0 == count % 2) {
                authorInfo.setMotto("我是要成为海贼王的男人！");
                authorInfo.setNickName("蒙奇 D 路飞");
                authorInfo.setPortraitUrl(urls[count]);
            } else {
                authorInfo.setMotto("我狂拽炫酷吊炸天！");
                authorInfo.setNickName("黑崎一护");
                authorInfo.setPortraitUrl(urls[count]);
            }
            authorInfoList.add(authorInfo);
        }
        return authorInfoList;
    }


    public static final String[] urls = {
            "http://img5.imgtn.bdimg.com/it/u=4171925720,1146667141&fm=11&gp=0.jpg",
            "http://p1.qhimg.com/t01688136ea2a8d1f3c.png",

            "http://h.hiphotos.baidu.com/baike/w%3D268%3Bg%3D0/sign=3cca75a28444ebf86d716339e1c2b017/8694a4c27d1ed21b595e6244ae6eddc450da3fff.jpg",
            "http://a.hiphotos.baidu.com/baike/pic/item/64380cd7912397dd717e34b75b82b2b7d0a2877a.jpg",

            "http://c.hiphotos.baidu.com/zhidao/pic/item/cefc1e178a82b90100874118718da9773912eff7.jpg",
            "http://im1.tongbu.com/appicon/639/639012.png?121116180055",

            "http://img0.imgtn.bdimg.com/it/u=1757067723,2129800107&fm=11&gp=0.jpg",
            "http://pic39.nipic.com/20140318/13424854_124630028000_2.jpg",

            "http://p4.image.hiapk.com/uploads/allimg/141023/7730-1410231F306.jpg",
            "http://tupian.enterdesk.com/2013/mxy/0815/7/2.jpg",
    };
}
